{% extends "personal_center/base.html" %}
{% load state_display %}
{% block page_link %}
<link rel="stylesheet" href="../../static/system_setup/css/style.css">
<link rel="stylesheet" type="text/css" href="../../static/personal_center/css/index.css">
<link rel="stylesheet" type="text/css" href="../../static/personal_center/css/common.css">
<script type="text/javascript" src="../../static/personal_center/js/index.js"></script>
{% endblock %}


{% block style %}
<style>
    .add_class {
        background: #1E90FF;
    }
    .top_tag {
            border-bottom: #01AAED solid 3px;
            color: #01AAED;
        }

    .tab_top {
        width: 100px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        display: inline-block;
        cursor: pointer;
    }
    .add-backbround-color {
        border-left: #1E90FF solid 3px;
        color: #1E90FF;
    }
</style>
{% endblock %}


{% block right_content %}
    <div class="headline">
        <div id="received_official_tab" onclick="change_mind('received_official')" class="tab_top top_tag">
            待收公文
        </div>
        <div id="my_application_tab" onclick="change_mind('my_application')" class="tab_top">
            已收公文
        </div>

        <div class="sa-ele" style="width: 85%;display: inline-block;text-align: right;font-size: 0;">
            <input type="text" name="search_val" style="width: 300px;display: inline-block;border-bottom-left-radius: 3px;border-top-left-radius: 3px;height: 30px;border: #0d8ddb solid 1px;vertical-align: top;font-size: 14px;padding-left: 2px;" placeholder="请输入搜索关键词">
            <button class="search-action" style="width: 100px;height: 30px;border-bottom-right-radius: 3px;border-top-right-radius: 3px;display: inline-block;font-size: 14px;border: #0d8ddb solid 1px;border-left: none;background: #0d8ddb;color: white;margin-left: -3px;">搜索</button>
        </div>
    </div>

    <div style="width: 100%;height: 95.3%;overflow: auto;background-color: white;">
        <div id="my_application" style="vertical-align: top;width: 15%;height: 100%;background: white;margin-top: 5px;display: none;">
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="h" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">京医文 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.h|str_to_int > 99 %} 99+ {% else %} {{ one_dict.h }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="f" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">京医发 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.f|str_to_int > 99 %} 99+ {% else %} {{ one_dict.f }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="g" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">党委公文 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.g|str_to_int > 99 %} 99+ {% else %} {{ one_dict.g }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="z" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">上级来文 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.z|str_to_int > 99 %} 99+ {% else %} {{ one_dict.z }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="w" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">外部来函 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.w|str_to_int > 99 %} 99+ {% else %} {{ one_dict.w }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="d" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">专题会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.d|str_to_int > 99 %} 99+ {% else %} {{ one_dict.d }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="a" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">党委会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.a|str_to_int > 99 %} 99+ {% else %} {{ one_dict.a }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="e" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">行政例会简报 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.e|str_to_int > 99 %} 99+ {% else %} {{ one_dict.e }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="c" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">党委专题会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.c|str_to_int > 99 %} 99+ {% else %} {{ one_dict.c }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="b" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">院长办公会会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.b|str_to_int > 99 %} 99+ {% else %} {{ one_dict.b }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="y" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">委员会会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict.y|str_to_int > 99 %} 99+ {% else %} {{ one_dict.y }} {% endif %}</span>
                </div>
            </div>
            <hr>
        </div>

        <div id="received_official" style="display: inline-block;vertical-align: top;width: 15%;height: 99%;background: white;margin-top: 5px;">
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="h1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">京医文 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.h|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.h }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="f1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">京医发 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.f|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.f }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="g1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">党委公文 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.g|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.g }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="z1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">上级来文 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.z|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.z }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="w" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">外部来函 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.w|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.w }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="d1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">专题会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.d|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.d }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="a1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">党委会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.a|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.a }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="e1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">行政例会简报 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.e|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.e }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="c1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">党委专题会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.c|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.c }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="b1" class="onclick-search1" style="padding-left: 5px;" onclick="change_color(this)">院长办公会会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.b|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.b }} {% endif %}</span>
                </div>
            </div>
            <hr>
            <div style="width: 95%;height: 35px;line-height: 35px;cursor: pointer;padding-left: 10px;">
                <div data-value="y1" class="onclick-search" style="padding-left: 5px;" onclick="change_color(this)">委员会会议纪要 <span
                        style="border-radius: 3px; font-size: 10px; float: right; background: #8c939d; width: 25px; height: 20px; margin-top: 10px; line-height: 20px; text-align: center; display: table-row;color: white;">{% if one_dict1.y|str_to_int > 99 %} 99+ {% else %} {{ one_dict1.y }} {% endif %}</span>
                </div>
            </div>
            <hr>
        </div>

        <div class="right-box" style="width: 84%;height: 100%;margin-top: 0;display: inline-block;vertical-align: top;">
            <div style="height: 100%;width: 100%;overflow: auto;border-bottom: #cccccc solid 1px;background-color: white;">
                <section class="grid-main" style="height: 100%;">
                    <table></table>
                </section>
            </div>
        </div>
    </div>

{% endblock %}

{% block script %}
    <script>
        window.onload = function () {
            document.getElementById("loading").style.display = "none";
            document.getElementById("personage").className = "add_class";
            document.getElementById("record_main").className = "add-nav-active";
            type_s = '待收公文';
         };

        const gridManagerName = "test",
        TYPE_MAP = {1: "HTML/CSS", 2: "nodeJS", 3: "javaScript", 4: "前端鸡汤", 5: "PM Coffee", 6: "前端框架", 7: "前端相关"},
        GM_PUBLISH_METHOD_MAP = {
            init: {key: "init", relyInit: !1, title: "初始化", code: 'demo1.initGM(document.querySelector("table"));'},
            get: {key: "get", relyInit: !0, title: "获取表格的实时配置信息", code: `GridManager.get('${gridManagerName}');`},
            version: {key: "version", relyInit: !1, title: "获取当前GridManager的版本号", code: "GridManager.version;"},
            getLocalStorage: {
                key: "getLocalStorage",
                relyInit: !0,
                title: "获取表格用户记忆",
                code: `GridManager.getLocalStorage('${gridManagerName}');`
            },
            resetLayout: {
                key: "resetLayout",
                relyInit: !0,
                title: "重置表格布局",
                code: `GridManager.resetLayout('${gridManagerName}', '800px', '500px');`
            },
            clear: {key: "clear", relyInit: !0, title: "清除表格记忆数据", code: `GridManager.clear('${gridManagerName}');`},
            getTableData: {
                key: "getTableData",
                relyInit: !0,
                title: "获取指定tr所使用的数据",
                code: `GridManager.getTableData('${gridManagerName}');`
            },
            getRowData: {
                key: "getRowData",
                relyInit: !0,
                title: "获取指定tr所使用的数据",
                code: `GridManager.getRowData('${gridManagerName}', document.querySelector("table[grid-manager=${gridManagerName}] tbody tr"));`
            },
            updateRowData: {
                key: "updateRowData",
                relyInit: !0,
                title: "更新指定行所使用的数据",
                code: `GridManager.updateRowData('${gridManagerName}', 'id', {id: 112, title: 'ccc'});`
            },
            updateTreeState: {
                key: "updateTreeState",
                relyInit: !0,
                title: "更新树的展开状态",
                code: `GridManager.updateTreeState('${gridManagerName}', true);`
            },
            setSort: {
                key: "setSort",
                relyInit: !0,
                title: "手动设置排序",
                code: `GridManager.setSort('${gridManagerName}', {createDate: 'ASC'});`
            },
            setConfigVisible: {
                key: "setConfigVisible",
                relyInit: !0,
                title: "设置表头配置区域可视状态",
                code: `GridManager.setConfigVisible('${gridManagerName}', true);`
            },
            setLineHeight: {
                key: "setLineHeight",
                relyInit: !0,
                title: "配置行的高度",
                code: `GridManager.setLineHeight('${gridManagerName}', '70px');`
            },
            showTh: {
                key: "showTh",
                relyInit: !0,
                title: "设置列为可视状态",
                code: `GridManager.showTh('${gridManagerName}', 'pic');`
            },
            hideTh: {
                key: "hideTh",
                relyInit: !0,
                title: "设置列为隐藏状态",
                code: `GridManager.hideTh('${gridManagerName}', 'pic');`
            },
            exportGrid: {
                key: "exportGrid",
                relyInit: !0,
                title: "导出指定表格",
                code: `GridManager.exportGrid('${gridManagerName}', 'demo中使用的导出').then(res=>{console.log('success')}).catch(err=>{console.error('error', err)});`
            },
            setQuery: {
                key: "setQuery",
                relyInit: !0,
                title: "更改在生成组件时所配置的参数query",
                code: `GridManager.setQuery('${gridManagerName}', {'userName':'baukh','sex':'男'});`
            },
            setAjaxData: {
                key: "setAjaxData",
                relyInit: !0,
                title: "用于再次配置ajaxData数据",
                code: `GridManager.setAjaxData('${gridManagerName}', {data: [{title: '通过setAjaxData动态添加的数据，其它项为空'}], totals: 1});`
            },
            refreshGrid: {
                key: "refreshGrid",
                relyInit: !0,
                title: "刷新表格",
                code: `GridManager.refreshGrid('${gridManagerName}');`
            },
            renderGrid: {
                key: "renderGrid",
                relyInit: !0,
                title: "渲染表格",
                code: `GridManager.renderGrid('${gridManagerName}');`
            },
            getCheckedTr: {
                key: "getCheckedTr",
                relyInit: !0,
                title: "获取当前选中的行",
                code: `GridManager.getCheckedTr('${gridManagerName}');`
            },
            getCheckedData: {
                key: "getCheckedData",
                relyInit: !0,
                title: "获取选中行的渲染数据",
                code: `GridManager.getCheckedData('${gridManagerName}');`
            },
            setCheckedData: {
                key: "setCheckedData",
                relyInit: !0,
                title: "设置选中的数据",
                code: `GridManager.setCheckedData('${gridManagerName}', [GridManager.getTableData('${gridManagerName}')[1]]);`
            },
            cleanData: {
                key: "cleanData",
                relyInit: !0,
                title: "清除指定表格数据",
                code: `GridManager.cleanData('${gridManagerName}');`
            },
            print: {key: "print", relyInit: !0, title: "打印当前页", code: `GridManager.print('${gridManagerName}');`},
            showRow: {
                key: "showRow",
                relyInit: !0,
                title: "显示隐藏行",
                code: `GridManager.showRow('${gridManagerName}', 1);`
            },
            hideRow: {
                key: "hideRow",
                relyInit: !0,
                title: "隐藏行",
                code: `GridManager.hideRow('${gridManagerName}', 1);`
            },
            showLoading: {
                key: "showLoading",
                relyInit: !0,
                title: "显示加载中",
                code: `GridManager.showLoading('${gridManagerName}');`
            },
            hideLoading: {
                key: "hideLoading",
                relyInit: !0,
                title: "隐藏加载中",
                code: `GridManager.hideLoading('${gridManagerName}', 300);`
            },
            destroy: {
                key: "destroy",
                relyInit: !0,
                title: "消毁指定的GridManager实例",
                code: `GridManager.destroy('${gridManagerName}');`
            }
         }, arg = {
            gridManagerName: "test",
            width: "100%",
            height: "100%",
            autoOrderConfig: {fixed: "left"},
            checkboxConfig: {key: "id", fixed: "left"},
            supportAjaxPage: !0,
            sortMode: "single",
            supportMenu: !0,
            menuHandler: e => (e.unshift({
                content: "自定义菜单", line: !0, onClick: e => {
                    alert(e)
                }
            }), e),
            useCellFocus: !0,
            useHideRow: !0,
            supportMoveRow: !0,
            moveRowConfig: {
                key: "priority", useSingleMode: !0, fixed: "left", handler: (e, t) => {
                    console.log(e, t)
                }
            },
            disableCache: !1,
            ajaxData: function (e, t) {
                var local_host = window.location.host;          // 获取当前IP
                // return document.querySelector('[name="type"]').value = t.type || -1, "https://www.lovejavascript.com/blogManager/getBlogList"
                return "/personal-center/getBlogList"

            },
            exportConfig: {
                fileName: e => {
                    const t = new Date;
                    let a = `${t.getFullYear()}-${t.getMonth() + 1}-${t.getDate()}`;
                    for (let t in e) a = `${a}-${t}=${e[t]}`;
                    return a
                }, suffix: "xls"
            },
            ajaxType: "POST",
            checkedBefore: function (e, t, a) {
                return console.log("checkedBefore==", e, t, a), a && 90 === a.id && alert("该节点在checkedBefore中配置为不可选"), a && 90 !== a.id
            },
            checkedAfter: function (e, t, a) {
                console.log("checkedAfter==", e, t, a)
            },
            checkedAllBefore: function (e, t) {
                console.log("checkedAllBefore==", e, t)
            },
            checkedAllAfter: function (e, t) {
                console.log("checkedAllAfter==", e, t)
            },
            sortingBefore: function (e) {
                console.log("sortingBefore", e)
            },
            sortingAfter: function (e) {
                console.log("sortingAfter", e)
            },
            ajaxBeforeSend: function (e) {
                console.log("ajaxBeforeSend")
            },
            ajaxSuccess: function (e) {
                console.log("ajaxSuccess")
            },
            ajaxError: function (e) {
                console.log("ajaxError")
            },
            ajaxComplete: function (e) {
                console.log("ajaxComplete")
            },
            adjustBefore: e => {
                console.log("adjustBefore=>", e)
            },
            adjustAfter: e => {
                console.log("adjustAfter=>", e)
            },
            responseHandler: e => (e.data.forEach((e => {
                e.priority = e.id
            })), e),
            rowRenderHandler: (e, t) => e,
            emptyTemplate: e => `<div style="text-align: center;">${e.query.title ? "搜索为空" : "暂无数据"}</div>`,
            columnData: [{
                key: "title",
                text: "标题",
                disableMoveRow: !0
            }, {
                key: "document_number",
                text: "公文编号",
                align: "center",
                // sorting: "",
                disableMoveRow: !0,
            }, {
                key: "real_name",
                text: "拟稿人",
                align: "center",
                disableMoveRow: !0
            }, {
                key: "department",
                text: "拟稿科室",
                align: "center",
            }, {
                key: "create_time",
                text: "收文时间",
                align: "center",
            }, {
                key: "action",
                width: "100px",
                align: "center",
                fixed: "right",
                disableMoveRow: !0,
                disableRowCheck: !0,
                text: '<span style="color: red">操作</span>',
                template: (e, t) => `<a class="plugin-action" href="${t.url}">${t.text}</a>`
            }]
         }, demo1 = {
            initSearch: function () {
                document.querySelector(".search-action").addEventListener("click", (function () {
                    var datavalue = ""
                    if (document.getElementsByClassName("onclick-search add-backbround-color").length) {
                        datavalue = document.getElementsByClassName("onclick-search add-backbround-color")[0].getAttribute("data-value").replace('1', '')
                    }
                    var e = {
                        search_data: document.querySelector('[name="search_val"]').value,
                        datavalue: datavalue,
                        types: type_s
                    };
                    table.GM("setQuery", e, (function () {
                        console.log("setQuery执行成功")
                    }))
                }))
            }, initFN: () => {

            }, initGM: function () {
                new window.GridManager(table, arg, (e => {
                    console.log("渲染完成后的回调函数:", e), console.log(arg.columnData)
                }))
            }, editRowData: function (e) {
                window.GridManager.updateRowData("test", "id", {
                    id: window.parseInt(e.getAttribute("data-id")),
                    lastDate: (new Date).getTime()
                })
            }
         }, table = document.querySelector("table");
        demo1.initSearch(table), demo1.initGM(table), demo1.initFN();

        function change_color(this_) {
            var onlick_list = document.getElementsByClassName("onclick-search");
            var onlick_list1 = document.getElementsByClassName("onclick-search1");
            for (var j = 0; j < onlick_list.length; j++) {
                onlick_list[j].className = "onclick-search";
            }
            for (var i = 0; i < onlick_list1.length; i++) {
                onlick_list1[i].className = "onclick-search";
            }
            this_.className = "onclick-search add-backbround-color";
            var e = {
                datavalue: this_.getAttribute("data-value").replace('1', ''),
                types: type_s
            };
            table.GM("setQuery", e, (function () {
                console.log("setQuery执行成功")
            }))
         }

        function change_mind(ele_id) {
            if (ele_id === "received_official") {
                type_s = '待收公文'
                document.getElementById("received_official_tab").className = "tab_top top_tag";
                document.getElementById("my_application_tab").className = "tab_top";
                document.getElementById("my_application").style.display="none";
                document.getElementById("received_official").style.display="inline-block";
                var e = {
                    types: type_s
                };
                table.GM("setQuery", e, (function () {
                    console.log("setQuery执行成功")
                }))
            } else{
                type_s = '已收公文'
                document.getElementById("my_application").style.display="inline-block";
                document.getElementById("received_official").style.display="none";
                document.getElementById("received_official_tab").className = "tab_top";
                document.getElementById("my_application_tab").className = "tab_top top_tag";
                e = {
                    types: type_s
                };
                table.GM("setQuery", e, (function () {
                    console.log("setQuery执行成功")
                }))
            }
        }
    </script>
{% endblock %}
